package com.emm.yixun.common.model;

import java.util.ArrayList;
import java.util.List;

/**
* 类描述： ExtJs 树结构
* 创建者： ThinkPad
* 项目名称： emm-common
* 创建时间： 2016年6月22日 下午6:27:25
* 版本号： v1.0
 */
public class TreeNode {
	 private String id;
	 
	 private String text;
	 
	 private boolean leaf ;
	 
	 private boolean expanded ;
	 
	 private List<TreeNode> children = new ArrayList<TreeNode>(); //子节点集合
	 
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	
	
	public List<TreeNode> getChildren() {
		return children;
	}
	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}
}
